# $Id: PKGBUILD 178980 2013-03-01 10:23:35Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>

pkgname=qimageblitz
pkgver=0.0.6
pkgrel=3
pkgdesc="A graphical effect and filter library for KDE"
arch=('i686' 'x86_64')
url="http://www.kde.org/"
license=('GPL2')
depends=('qt4')
makedepends=('cmake')
source=("http://download.kde.org/stable/${pkgname}/${pkgname}-${pkgver}.tar.bz2")
md5sums=('0ae2f7d4e0876764a97ca73799f61df4')

build() {
  . /etc/profile.d/qt4.sh

  mkdir build
  cd build
  cmake ../${pkgname}-${pkgver} \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr 
  make
}

package() {
  cd build
  make DESTDIR="${pkgdir}" install
}
